package cn.wolfcode.luowowo.swagger2;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

// 测试swagger的标签
@ApiModel(value="用户",description="平台注册用户模型")//参数是个对象的时候可以这样贴注解
@Getter
@Setter
public class PersonTest {

    // 对象里的属性贴这个标签
    @ApiModelProperty(value="账号",name="username",dataType = "String",required = true)
    private String username;

    @ApiModelProperty(value="密码",name="password",dataType = "String",required = true)
    private String password;
}
